//---------------------------------------------------------------------------

#ifndef Unit1H
#define Unit1H
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include <Grids.hpp>
#include <Mask.hpp>
#include <ValEdit.hpp>
#include <Buttons.hpp>
#include <Menus.hpp>
#include <ComCtrls.hpp>
#include "Unit6.h"
#include <jpeg.hpp>
//---------------------------------------------------------------------------
class TForm1 : public TForm
{
__published:	// IDE-managed Components
        TPanel *Panel1;
        TPanel *Panel2;
        TPanel *Panel3;
        TMainMenu *MainMenu1;
        TMenuItem *Command;
        TGroupBox *GroupBox1;
        TGroupBox *GroupBox2;
        TGroupBox *GroupBox3;
        TEdit *Edit1;
        TSpeedButton *SpeedButton1;
        TSpeedButton *SpeedButton2;
        TSpeedButton *SpeedButton3;
        TSpeedButton *SpeedButton4;
        TSpeedButton *SpeedButton5;
        TLabel *Label1;
        TLabel *Label2;
        TLabel *Label3;
        TLabel *Label4;
        TEdit *Edit2;
        TEdit *Edit3;
        TLabel *Label5;
        TLabel *Label6;
        TSpeedButton *SpeedButton6;
        TSpeedButton *SpeedButton7;
        TLabel *Label7;
        TEdit *Edit4;
        TLabel *Label8;
        TLabel *Label9;
        TEdit *Edit5;
        TLabel *Label10;
        TEdit *Edit6;
        TSpeedButton *SpeedButton8;
        TSpeedButton *SpeedButton9;
        TSpeedButton *SpeedButton10;
        TSpeedButton *SpeedButton11;
        TImage *Image1;
        TMenuItem *Moveleft1;
        TMenuItem *Moveright1;
        TMenuItem *Moveup1;
        TMenuItem *Movedown1;
        TMenuItem *ZoomX1;
        TMenuItem *ZoomY1;
        TMenuItem *Turn1;
        TMenuItem *Symmetry1;
        TMenuItem *Reset1;
        TMenuItem *Close1;
        TMenuItem *About1;
        TMenuItem *Xsymmetry1;
        TMenuItem *Ysymmetry1;
        TMenuItem *XYsymmetry1;
        TImage *Image2;
        void __fastcall FormCreate(TObject *Sender);
        void __fastcall SpeedButton2Click(TObject *Sender);
        void __fastcall SpeedButton4Click(TObject *Sender);
        void __fastcall SpeedButton5Click(TObject *Sender);
        void __fastcall SpeedButton3Click(TObject *Sender);
        void __fastcall SpeedButton6Click(TObject *Sender);
        void __fastcall SpeedButton7Click(TObject *Sender);
        void __fastcall SpeedButton8Click(TObject *Sender);
        void __fastcall SpeedButton1Click(TObject *Sender);
        void __fastcall SpeedButton9Click(TObject *Sender);
        void __fastcall SpeedButton10Click(TObject *Sender);
        void __fastcall SpeedButton11Click(TObject *Sender);
        void __fastcall Reset1Click(TObject *Sender);
        void __fastcall Close1Click(TObject *Sender);
        void __fastcall Moveleft1Click(TObject *Sender);
        void __fastcall Moveright1Click(TObject *Sender);
        void __fastcall Moveup1Click(TObject *Sender);
        void __fastcall Movedown1Click(TObject *Sender);
        void __fastcall ZoomX1Click(TObject *Sender);
        void __fastcall ZoomY1Click(TObject *Sender);
        void __fastcall Turn1Click(TObject *Sender);
        void __fastcall Xsymmetry1Click(TObject *Sender);
        void __fastcall Ysymmetry1Click(TObject *Sender);
        void __fastcall XYsymmetry1Click(TObject *Sender);
        void __fastcall About1Click(TObject *Sender);
private:	// User declarations
        void InitArray();                   
        void DrawGraph();
        void Trans(TPoints&, int, int);
        void Zoom(TPoints*, int, double, double);
        void Turn(TPoints&, double, TPoints);
        void PixelFill1(int, int, int, int);
//        void PixelFill1(int, int, int, int);
        struct TPoints apoints[7], bpoints[7], ellipse[360], o, center;
public:		// User declarations
        __fastcall TForm1(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TForm1 *Form1;
//---------------------------------------------------------------------------
#endif
